package com.wtwd.device.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wtwd.device.model.entity.AppManagement;
import com.wtwd.device.model.vo.AppNameVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author mjy
 * @date 2021/11/08
 * @description
 */
@Mapper
public interface AppManagementMapper {

    IPage<AppManagement> getPagingAppManagementList(@Param("page") Page<Object> page);

    AppManagement getAppManagementByName(@Param("appName") String appName);

    Integer addApp(AppManagement appManagement);

    Integer updateApp(AppManagement appManagement);

    Integer deleteAppById(@Param("id") long id);

    List<AppNameVo> getAllAppName();

}
